package com.hr.fer.nmbp.lab2.baseclasses;

import java.util.List;

public class Hotel {
	private String name;
	private String city;
	private String oib;
	private List<Room> rooms;
	
	
	/**
	 * @param name
	 * @param city
	 * @param oib
	 * @param rooms
	 */
	public Hotel(String name, String city, String oib, List<Room> rooms) {
		super();
		this.name = name;
		this.city = city;
		this.oib = oib;
		this.rooms = rooms;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}
	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}
	/**
	 * @return the oib
	 */
	public String getOib() {
		return oib;
	}
	/**
	 * @param oib the oib to set
	 */
	public void setOib(String oib) {
		this.oib = oib;
	}
	/**
	 * @return the rooms
	 */
	public List<Room> getRooms() {
		return rooms;
	}
	/**
	 * @param rooms the rooms to set
	 */
	public void setRooms(List<Room> rooms) {
		this.rooms = rooms;
	}
	public static void main(String[] args) throws Exception{
		/*String databaseURL = "jdbc:mysql://localhost:3306/hrs";
		ConnectionSource connectionSource = new JdbcConnectionSource(databaseURL,"root","root");
		Dao<Hotel, String> accountDao = DaoManager.createDao(connectionSource, Hotel.class);
		TableUtils.createTable(connectionSource, Hotel.class);
		
		Hotel hilton = new Hotel("Hilton","Zagreb","10101048135");
		accountDao.create(hilton);
		
		connectionSource.close();*/
	}
}
